package com.jhgsys.internal.accident.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jhgsys.internal.common.entity.BaseEntity;

import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;


/**
 *  Entity
 *
 * @author zjb
 * @date 2024-09-13 10:25:45
 */
@Data
@TableName("accident_report_culprit_user")
public class AccidentReportCulpritUser extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @TableId(value = "report_culprit_user_id", type = IdType.ASSIGN_UUID)
    private String reportCulpritUserId;

    /**
     * 公司Id
     */
    @TableField("tenant_id")
    @NotBlank(message = "{required}")
    private String tenantId;

    /**
     * 事故上报Id
     */
    @TableField("report_id")
    @NotBlank(message = "{required}")
    private String reportId;

    /**
     * 用户Id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 员工类型
     */
    @TableField("user_type")
    @NotBlank(message = "{required}")
    private String userType;

    /**
     * 员工账户
     */
    @TableField("user_name")
    private String userName;

    /**
     * 员工工号
     */
    @TableField("user_no")
    private String userNo;

    /**
     * 员工姓名
     */
    @TableField("real_name")
    @NotBlank(message = "{required}")
    private String realName;

    /**
     * 身份证号
     */
    @TableField("identification_no")
    @NotBlank(message = "{required}")
    private String identificationNo;

    /**
     * 部门Id
     */
    @TableField("dept_id")
    private String deptId;

    /**
     * 部门名称
     */
    @TableField("dept_name")
    private String deptName;

    /**
     * 员工工龄
     */
    @TableField("user_seniority")
    private String userSeniority;

    /**
     * 员工学历
     */
    @TableField("user_degree")
    private String userDegree;

    /**
     * 工作单位
     */
    @TableField("workplace")
    private String workplace;

    /**
     * 入司时间
     */
    @TableField("join_date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date joinDate;

    /**
     * 本工种工龄
     */
    @TableField("current_seniority")
    private Integer currentSeniority;

    /**
     * 损失工时
     */
    @TableField("loss_hours")
    private Integer lossHours;

}